package cn.usian.pricingstrategy.coefficient.mapper;

import cn.usian.basicInformation.log.commons.Constants;
import cn.usian.basicInformation.log.commons.Log;
import cn.usian.pojo.pricingstrategy.coefficient.PricingSpecialTimeSlot;

import java.util.List;
import java.util.Set;

public interface TimeSlotMapper {
    List<PricingSpecialTimeSlot> list();

    PricingSpecialTimeSlot findById(long id);

    @Log(operationModule = "定价策略", operationType = Constants.UPDATE)
    void update(PricingSpecialTimeSlot item);

    @Log(operationModule = "定价策略", operationType = Constants.INSERT)
    void save(PricingSpecialTimeSlot item);

    List<PricingSpecialTimeSlot> findByIds(Set<Long> idsToUpdate);

    Integer delete(long id);
}
